package com.wanlian.dao;


import com.wanlian.common.PageCondition;
import com.wanlian.entity.Authority;
import com.wanlian.model.ResultModel;

import java.util.List;

public interface AuthorityDao extends GenericDao<Authority> {

    /**
     * 权限分页查询
     *
     * @param pageCondition
     * @return
     */
    ResultModel queryPageList(PageCondition pageCondition);

    /**
     * 获取子类权限集合
     *
     * @param parentid
     * @return
     */
    List<Authority> queryListByParentid(int parentid);

    Authority queryByName(String name,String methodorUrl);

    Authority queryByMethodUrl(String methodorUrl);

}
